package com.wzl.ma;

import com.wzl.ma.db.MaDbAdapter;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MedicineAlert extends Activity {
	
	Button btn;
	MaDbAdapter dbAdapter;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        dbAdapter = new MaDbAdapter(this);
        dbAdapter.open();
        btn = (Button)findViewById(R.id.Button01);
        btn.setOnClickListener(new View.OnClickListener(){
			@Override
			public void onClick(View v) {
				// TODO close database
				dbAdapter.close();
			}});
    }
}